@media only screen and (max-width: 1299px) {
    aside.toc-nav {
        max-width: 45px;
        opacity: 0.6;
        right: 0 !important;
        margin-right: 0 !important;
        background: #fff;
    }
    aside.toc-nav:hover {
        max-width: inherit;
        opacity: 1;
    }
}

@media only screen and (min-width: 1300px) {
    section.content {
        padding-right: 200px;
    }
}

aside.toc-nav {
    position: fixed;
    top: 70px;
    right: 3%;
    margin-right: 20px;
    width: 250px;
    z-index: 999999;
    align-self: flex-start;
    flex: 0 0 auto;
    overflow-y: auto;
    max-height: 75%;
    padding: 20px 0px;
}

aside.toc-nav.nothing {
    width: 0;
}

.page_toc {
    position: relative;
    left: 0;
    margin: 10px 0;
    border: none;
    font-size: 1.0em;
}

.page_toc p.title {
    margin: 0;
    padding-bottom: 5px;
    font-weight: 600;
    font-size: 1.2em;
}

.page_toc .anchor:hover:after {
    content: "";
}
.page_toc div[class^="lv"] a:hover span {
    color: var(--sidebar-nav-link-color--active, #42b983);
}

.page_toc div {
    border-left: 2px solid #e8e8e8;
    text-indent: 10px;
    padding: 2px 0;
    cursor: pointer;
}

.page_toc div.active {
    border-left-color: var(--sidebar-nav-link-color--active, #42b983);
    transition: border-left-color 0.23s;
}

.page_toc div.active a span {
    color: var(--sidebar-nav-link-color--active, #42b983);
    transition: color 0.23s;
}

.page_toc div[class^="lv"] a {
    color: var(--text-color-base, black);
    text-decoration: none;
    font-weight: 300;
    line-height: 2em;
    display: block;
}

.page_toc div[class^="lv"] a span {
    color: var(--sidebar-nav-link-color--hover, var(--sidebar-nav-link-color));
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow:ellipsis;
}

.page_toc div.lv2 {
    text-indent: 20px;
}

.page_toc div.lv3 {
    text-indent: 30px;
}

.page_toc div.lv4 {
    text-indent: 40px;
}

.page_toc div.lv5 {
    text-indent: 50px;
}

.page_toc div.lv6 {
    text-indent: 60px;
}

aside.toc-nav::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

aside.toc-nav::-webkit-scrollbar-thumb {
    background: #50bfff;
    background-image: -webkit-linear-gradient(45deg,rgba(255,255,255,.4) 25%,transparent 0,transparent 50%,rgba(255,255,255,.4) 0,rgba(255,255,255,.4) 75%,transparent 0,transparent);
}

aside.toc-nav::-webkit-scrollbar-thumb {
    background: rgba(160,160,160,.2);
    border-radius: 2em;
}

aside.toc-nav::-webkit-scrollbar-track {
    background: 0 0;
    border-radius: 2em;
}